using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SimpleObj : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        GameObject playerTagObj = GameObject.FindWithTag("KanXiang");
        if (playerTagObj != null)
        {
            Debug.Log("根据tag找到Player了! name: " + playerTagObj.name);
            this.transform.RotateAround(playerTagObj.transform.position, Vector3.up, 30 * Time.deltaTime);
        }
    }
}
